<?php
/*if (isset($_GET['logout']) && $_SESSION['logout'] == false) {
	unset($_SESSION['Auth']);
	$_SERVER['PHP_AUTH_USER'] = "";
	$_SERVER['PHP_AUTH_PW'] = "";
	$_SESSION['logout'] = true;
} else if (isset($_SERVER['PHP_AUTH_USER']) && isset($_SERVER['PHP_AUTH_PW']))
{
	if ($_SERVER['PHP_AUTH_USER'] == "admin"  && $_SERVER['PHP_AUTH_PW'] == "admin")
	{
		$_SESSION['Auth'] = true;
		$_SESSION['logout'] = false;
	}
}

if (!isset($_SESSION['Auth'])) {
Header("WWW-Authenticate: Basic realm=Login");
Header("HTTP/1.0 401 Unauthorized");
die();
}
*/

/**
 * @file
 * The PHP page that serves all page requests on a Drupal installation.
 *
 * The routines here dispatch control to the appropriate handler, which then
 * prints the appropriate page.
 *
 * All Drupal code is released under the GNU General Public License.
 * See COPYRIGHT.txt and LICENSE.txt.
 */

/**
 * Root directory of Drupal installation.
 */
define('DRUPAL_ROOT', getcwd());
//$_SERVER['HTTP_HOST'] = 'digitalscience.ru.swteh.ru';
require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
menu_execute_active_handler();
